package com.indusfo.spc.service;

import com.indusfo.spc.pojo.BatchFlow;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/4 15:55
 * @Version 1.0
 */
public interface BatchFlowService {
    /**
     * 查询
     */
    JSONObject queryBatchFlow(BatchFlow batchFlow);

    /**
     * 新增
     */
    JSONObject insertBatchFlow(BatchFlow batchFlow);

    /**
     * 修改
     */
    JSONObject updateBatchFlow(BatchFlow batchFlow);

    /**
     * 启停
     */
    JSONObject deleteBatchFlow(List<Integer> batchFlowIds, Integer dataState);

    /**
     * 保存流程工位
     */
    JSONObject saveBatchStation(BatchFlow batchFlow);

    /**
     * 保存流程采集参数
     */
    JSONObject saveBatchDete(BatchFlow batchFlow);

    /**
     * 保存流程物料
     */
    JSONObject saveBatchBom(BatchFlow batchFlow);

    /**
     * 保存不良现象
     */
    JSONObject saveBatchBadpheno(BatchFlow batchFlow);
    /**
     * @Author 熊冰 任务单流程导入批次流程
     * @Date 2019/12/9 10:34
     */
	JSONObject leadBatchFlow(Integer orderId, Integer batchId,String batchCode);

    /**
     * 批次流程维修下工序新增查询
     */
    JSONObject queryListBatchFlowToInsert(BatchFlow batchFlow);

    /**
     * 级联删除工序流程关联的工位、采集参数、关键物料、不良现象
     */
    JSONObject deleteCascadeBatchFlow(List<Integer> batchFlowIds, Integer dataState);
}
